import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class inputClose1 {
    public static void main(String[] args) throws IOException {
        try (InputStream inputStream = new FileInputStream("./input.txt")){
            //准备一个空数组
            byte[] bytes = new byte[1024];
            //读取数据
            int n = inputStream.read(bytes);
            for (int i = 0; i < n; i++) {
                System.out.printf("0X%x ", bytes[i]);
            }
        }
    }
}
